package com.yjd.bi.jf.service;

import java.util.Map;

import com.yjd.bi.jf.model.JfIntegralYearModel;
import com.yjd.comm.base.service.IBaseService;

/**
 * <b>description</b>：会员年积分流水表业务接口<br>
 * <b>time</b>：2017-03-07 15:11:11 <br>
 * <b>author</b>：  ready percy-chen@hotmail.com
 */
public interface IJfIntegralYearService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public JfIntegralYearModel insert(JfIntegralYearModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(JfIntegralYearModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;
	
	
	public int updateMap(Map<Object,Object> map)throws Exception;
	
	/**
	 * 年度积分清零
	 * @param id
	 * @throws Exception
	 */
	public void clearJfOfYear(Long id)throws Exception;

}
